package com.bjpowernode.springboot.domain;

import com.bjpowernode.springboot.annotation.ExcelColumn;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;

/**
 * Copyright (C), 2021-2021, 颜子初
 * Author: yan
 * Date: 2021/11/12 16:50
 * FileName: Student
 * Description:
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    @Column(columnDefinition = "timestamp null comment '创建时间'", updatable = false)
    @ExcelColumn("时间")
    protected String createTime;

    @Column(columnDefinition = "varchar(50) null default '' comment '姓名'")
    @ExcelColumn("姓名")
    private String name;

    @Column(columnDefinition = "varchar(50) null default '' comment '学号'")
    @ExcelColumn("学号")
    private String number;

    @Column(columnDefinition = "varchar(50) null default '' comment '班级'")
    @ExcelColumn("班级")
    private String clazz;

}
